Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / .github / instructions / android-source-set.instructions.md

Displaying Raw • View renderedDownload

.github/instructions/android-source-set.instructions.md 7a42a34dbcd11b4800cc9c6130b3f4d87ab945df (7a42a34d) Text, 552 B

---
Tc9d1d9applyTo: "**/androidMain/**/*.kt"
Tc9d1d9---

Tc9d1d9# Android Source-Set Rules

Tff7b72- This is Ta5d6ff`androidMain` — Android framework imports (Ta5d6ff`android.*`, Ta5d6ff`java.*`) are allowed here.
Tff7b72- Do NOT put business logic here. Business logic belongs in Ta5d6ff`commonMain`.
Tff7b72- If you find identical pure-Kotlin logic in both Ta5d6ff`androidMain` and Ta5d6ff`jvmMain`, extract it to Ta5d6ff`commonMain`.
Tff7b72- Use Ta5d6ff`expect`/Ta5d6ff`actual` only for small platform primitives. Prefer interfaces + DI.
Tff7b72- Keep Ta5d6ff`expect` declarations in Ta5d6ff`FileIo.kt` and shared helpers in Ta5d6ff`FileIoUtils.kt` to avoid JVM duplicate class errors.

Served by rngit 1.5.2 - Generated in 0.04s